package mao.exaimnation.meituan;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author Totoro
 * @date 2020/8/29
 * @explain:
 */
public class Main2 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list;
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            boolean[] area = new boolean[n+1];
             list = new ArrayList<>();
            for (int i = 0; i < n; i++) {
                boolean find = false;
                for (int j = 0; j < n; j++) {

                   int index = scanner.nextInt();
                   if (!find &&  !area[index]) {
                      list.add(index);
                      area[index] = true;
                      find = true;
                   }
                }
            }
            for (Integer b : list) {
                System.out.print(b+" ");
            }
        }

    }
}
